package com.example.romancalc.core;

import java.io.Serializable;

/**
 * The implementation of the calculator interface 
 * 
 * @author Luis Oscar Trigueiros
 *
 */
public class RomanCalcImpl implements IRomanCalc, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3897934690010927106L;

	public String add(String op1, String op2) {
		RomanNumber rn1 = new RomanNumber(op1);
		RomanNumber rn2 = new RomanNumber(op2);
		return new RomanNumber( rn1.getValue() + rn2.getValue()).toRomanValue();
	}

}
